Send SMS
AutomatR.Twilio.Activities.SendSMS
The "Send SMS" activity in AutomatR is part of the Twilio SMS activities package, allowing you to send text messages efficiently. This activity simplifies the process of sending SMS, enhancing automation workflows involving SMS communication.
Properties
Name | Description |
---|---|
Input | |
Account SID | It is a unique identifier assigned to each Twilio account. It serves as a primary identifier for account management and API authentication purposes. Required argument. |
Auth Token | It is a confidential access credential used to securely interact with Twilio's services. Required argument. |
Body | Represents the actual message content that will be included in an SMS communication. Required argument. |
To | Refers to the receiver's phone number who the message is being sent. Required argument. |
From | Refers to the sender's phone number who the message is being sent. Required argument. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Send SMS" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Message Response | Stores the result in a List<MessageResource> , which can be utilized in other subsequent activities. Variables of type List<MessageResource> to store the result. |
How to use:
- Drag and drop the "Send SMS" activity onto the workflow.
- Configure the properties by specifying the Twilio account SID, authentication token, message content, recipient's phone number, and sender's phone number.
- Optionally, configure the delay.
- Execute the workflow to send the text message.
Example: Consider an example where the "Send SMS" activity is used to send a text message to multiple recipients:
Send SMS:
Account SID: "your_twilio_account_sid"
Auth Token: "your_twilio_auth_token"
Body: "Hello, this is an automated message!"
To: "+1234567890,+9876543210"
From: "+9876543210"
Delay: 2
Message Response: smsResponses
In this example, the activity sends an SMS with the specified content to recipients with phone numbers +1234567890 and +9876543210. The response, containing information about each sent message, is stored in the smsResponses
variable for further handling in the workflow.